from django.conf.urls.defaults import patterns, include, url

import os

PATH = os.path.dirname(__file__).replace('\\','/')
if PATH[-1]=='/':
    PATH=PATH[:-1]


# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'prj2.views.home', name='home'),
    url(r'^prj2/ts/', include('ts.urls')),
    url(r'^prj2/sgx/', include('sgx.urls')),
    url(r'^prj2/$', 'transsysweb.views.home'),
    url(r'^prj2/exportWorkspace$', 'transsysweb.views.exportWorkspace'),
    url(r'^prj2/importWorkspace$', 'transsysweb.views.importWorkspace'),

    (r'^site_media/(.*)$', 'django.views.static.serve', {'document_root': os.path.join(PATH, 'media/')}),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
